package com.threadExample;

/**
 * Created by yijy on 2017/7/25.
 */
public class ThreadTest3 implements Runnable {

    @Override
    public void run() {
        for(int a=0;a<20;a++){
            System.out.println(Thread.currentThread().getName()+":"+a);
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }



    public static void main(String[] args) {
        ThreadTest3 test3 = new ThreadTest3();
        Thread t1 = new Thread(test3);
        Thread t2 = new Thread(test3);
//        t1.start();
//        t2.start();
        System.out.println(10%10);
    }
}
